package com.kotlin.library.common

import android.app.Application
import com.kotlin.library.injection.component.AppComponent
import com.kotlin.library.injection.component.DaggerAppComponent
import com.kotlin.library.injection.module.AppModule

/**
 *
 * USER: zjw
 * DATA: 2018/11/28 0028
 * TIME: 下午 6:19
 */
class BaseApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        initInjection()
    }

    lateinit var appComponent: AppComponent
    private fun initInjection() {
        appComponent = DaggerAppComponent.builder().appModule(AppModule(this)).build()
    }
}